<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - 基本表单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/tuandui/furniture222/Public/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/tuandui/furniture222/Public/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/tuandui/furniture222/Public/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/tuandui/furniture222/Public/Admin/css/animate.min.css" rel="stylesheet">
    <link href="/tuandui/furniture222/Public/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" href="/tuandui/furniture222/Public/Admin/js/kindeditor/themes/default/default.css" />

</head>
<style>
  #upload{
    opacity:0;
  }
  #img{
    display:block;
    border:1px solid #999;
    height:200px;
    width:200px;
    line-height:118px;
    cursor:pointer;
    margin-top:-34px;
  }
</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>用户信息</h5>
                        <small><a href="list.html" style="color:#ccc;margin-left:10px"><i class="fa fa-list"></i>用户列表</a></small>
                        <div class="ibox-tools"><button type="button" id="loading-example-btn" class="btn btn-white btn-sm"><i class="fa fa-refresh"></i> 刷新</button>

                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form method="post" class="form-horizontal" action="" enctype="multipart/form-data">
                            <input type="hidden" name="page_id" value="<?php echo ($page["page_id"]); ?>">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">单页名称</label>

                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="page_name" value="<?php echo ($page["page_name"]); ?>">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">单页图片</label>
                                <div class="col-sm-3">
                                    <input type="file" class="form-control" name="page_img" id="upload">
                                    <label for="upload" style="margin-bottom:0;">
                                      <?php if((!empty($page['page_img']))): ?><img src="/tuandui/furniture222/Upload/<?php echo ($page["page_img"]); ?>" alt="" id="img" />
                                      <?php else: ?> 
                                        <img src="/tuandui/furniture222/Public/Admin/upload.png" alt="" id="img" /><?php endif; ?>
                                    </label>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">单页内容</label>
                                <textarea name="page_content"><?php echo ($page["page_content"]); ?></textarea>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <a class="btn btn-white" href="javascript:void(0)" onclick="history.go(-1)" >取消</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- <div id="modal-form" class="modal fade" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <div class="row">
                        <div class="col-sm-6 b-r">
                            <h3 class="m-t-none m-b">登录</h3>

                            <p>欢迎登录本站(⊙o⊙)</p>

                            <form role="form">
                                <div class="form-group">
                                    <label>用户名：</label>
                                    <input type="email" placeholder="请输入用户名" class="form-control">
                                </div>
                                <div class="form-group">
                                    <label>密码：</label>
                                    <input type="password" placeholder="请输入密码" class="form-control">
                                </div>
                                <div>
                                    <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit"><strong>登录</strong>
                                    </button>
                                    <label>
                                        <input type="checkbox" class="i-checks">自动登录</label>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> -->
    <script src="/tuandui/furniture222/Public/Admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/tuandui/furniture222/Public/Admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/tuandui/furniture222/Public/Admin/js/content.min.js?v=1.0.0"></script>
    <script src="/tuandui/furniture222/Public/Admin/js/plugins/layer/laydate/laydate.js"></script>
    <script src="/tuandui/furniture222/Public/Admin/js/plugins/iCheck/icheck.min.js"></script>
 <script charset="utf-8" src="/tuandui/furniture222/Public/Admin/js/kindeditor/kindeditor-min.js"></script>
 <script charset="utf-8" src="/tuandui/furniture222/Public/Admin/js/kindeditor/lang/zh_CN.js"></script>
 <script>
             var editor;
             KindEditor.ready(function(K) {
                 editor = K.create('textarea[name="page_content"]', {
                     allowFileManager : true
                 });
             });
        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
      $('#loading-example-btn').click(function(){
        location.reload();
       })
      laydate({elem:"#date",event:"focus"});
     
    </script>
    <script>
    //做图片上传预览
      function getObjectURL(file) {
        var url = null ; 
        if (window.createObjectURL!=undefined) { // basic
          url = window.createObjectURL(file) ;
        } else if (window.URL!=undefined) { // mozilla(firefox)
          url = window.URL.createObjectURL(file) ;
        } else if (window.webkitURL!=undefined) { // webkit or chrome
          url = window.webkitURL.createObjectURL(file) ;
        }
        return url ;
      }
      $('#upload').change(function(){
      var url=getObjectURL(this.files[0]);
      if(url){
        $('#img').attr('src',url);
      }
    })
       $('#upload2').change(function(){
      var url=getObjectURL(this.files[0]);
      if(url){
        $('#img2').attr('src',url);
      }
    })
  </script>
</body>
</html>